
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>

<div class="panel panel-default" >
    <div class="panel-heading" >
        Boekingen
    </div>
    <c:if test="${not empty bookings}">
        <div class="container-fluid">
            <div class="row">
                <div class="row">
                    <div class="col-md-2">Start datum</div>
                    <div class="col-md-2">Eind datum</div>
                    <div class="col-md-2">Aantal personen</div>
                    <div class="col-md-2">Prijs</div>
                </div>
                <c:forEach var="booking" items="${bookings}">
                    <div class="row">
                        <div class="col-md-2">${booking.tripbooking.startDate}</div>
                        <div class="col-md-2">${booking.tripbooking.endDate}</div>
                        <div class="col-md-2">${booking.tripbooking.totalPersons}</div>
                        <div class="col-md-2">${booking.tripbooking.price}</div>
                    </div>
<!--                    <div class="row">
                        <div class="row">
                            <div class="col-md-2">Trip id</div>
                            <div class="col-md-2">Trip start datum</div>
                            <div class="col-md-2">Trip eind datum</div>
                        </div>
                        <div class="row">
                            <c:forEach var="accommdation" items="${booking.tripviewmodel.accommodations}">
                                <div class="col-md-2">${booking.tripviewmodel.trip.title}</div>
                                <div class="col-md-2">${booking.tripviewmodel.trip.startDate}</div>
                                <div class="col-md-2">${booking.tripviewmodel.trip.endDate}</div>
                                ${accommodation.description}
                            </c:forEach>
                        </div>
                    </div>-->
                </c:forEach>

            </div>
        </div>
    </c:if>
    <c:if test="${empty bookings}">
        <h5><a href="${pageContext.request.contextPath}/customer/index">Klant heeft geen boekingen</a></h5>
    </c:if> 